package main

import (
	"fmt"
	"gitee.com/zhangyu520cw/go-learning/weekOne/sliceType"
)

func main() {
	bookIndex := []int{1, 2, 3, 4, 5, 6}
	println("原切片打印")
	for _, v := range bookIndex {
		fmt.Println(v)
	}
	println(len(bookIndex), cap(bookIndex))
	bookIndex = sliceType.DeleteSlice(bookIndex, 3)
	println("删除后切片打印")
	for _, v := range bookIndex {
		fmt.Println(v)
	}
	println(len(bookIndex), cap(bookIndex))
}
